-- GENERATED SPELL FOR [Sunblade Blood Knight] --


function spell0_24684(pUnit, Event) --@Holy Light,Heal--
pUnit:FullCastSpellOnTarget(44479,pUnit)
pUnit:RegisterEvent('Sorts_24684', 2000, 1)
end

function spell1_24684(pUnit, Event) --@Holy Light,Heal--
pUnit:FullCastSpellOnTarget(46029,pUnit)
pUnit:RegisterEvent('Sorts_24684', 2000, 1)
end

function spell2_24684(pUnit, Event) --@Judgement of Wrath,n/a--
pUnit:FullCastSpellOnTarget(44482,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24684', 15000, 1)
end

function spell3_24684(pUnit, Event) --@Judgement of Wrath,n/a--
pUnit:FullCastSpellOnTarget(46033,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24684', 15000, 1)
end

function spell4_24684(pUnit, Event) --@Seal of Wrath,Self--
pUnit:FullCastSpellOnTarget(44480,pUnit)
pUnit:RegisterEvent('Sorts_24684', 30000, 1)
end

function spell5_24684(pUnit, Event) --@Seal of Wrath,Self--
pUnit:FullCastSpellOnTarget(46030,pUnit)
pUnit:RegisterEvent('Sorts_24684', 30000, 1)
end

function Sorts_24684(pUnit, Event)
local choix_sorts_24684 = math.random(0, 5)
if choix_sorts_24684 == 0 then
pUnit:RegisterEvent('spell0_24684', 1, 1)
end
if choix_sorts_24684 == 1 then
pUnit:RegisterEvent('spell1_24684', 1, 1)
end
if choix_sorts_24684 == 2 then
pUnit:RegisterEvent('spell2_24684', 1, 1)
end
if choix_sorts_24684 == 3 then
pUnit:RegisterEvent('spell3_24684', 1, 1)
end
if choix_sorts_24684 == 4 then
pUnit:RegisterEvent('spell4_24684', 1, 1)
end
if choix_sorts_24684 == 5 then
pUnit:RegisterEvent('spell5_24684', 1, 1)
end
end

function mob24684_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24684', math.random(1500, 3000), 1)
end

function mob24684_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24684_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24684_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24684, 1, 'mob24684_Action')
RegisterUnitEvent(24684, 2, 'mob24684_Leave')
RegisterUnitEvent(24684, 3, 'mob24684_Kill')
RegisterUnitEvent(24684, 4, 'mob24684_Die')
